﻿@model IList<Parichay.Domain.MemberPosts>

@{
    ViewBag.Title = "Index";
Layout = "~/Views/Shared/_Layout.cshtml";
}
@section Styles {
<link href="@Url.Content("~/Content/Styles/jquery.ui.css")" rel="stylesheet" type="text/css" />

}

@section Scripts
{
<script src="@Url.Content("~/Content/Scripts/jquery-ui-1.8.11.min.js")" type="text/javascript"></script>
<script type="text/javascript">
    $(document).ready(function ($) {

        $('DIV.modalWin').dialog({ autoOpen: false }); // or hide in css
        //$('DIV.modalWin').modal();


        $('a.openModal').click(function () {
            var divNm = '#' + $(this).attr('data-name');
            $(divNm).dialog('open');
        });

        $('DIV.rplyBox').toggle('slow');

        $('a.showreply').click(function () {
            var divNm = '#' + $(this).attr('data-name');
            $(divNm).toggle('slow');
        });
    });
</script>
}
@if ((Model != null) && (Model.Count != 0))
{
 <div class="cmtMainBox">
     <div class="cmtHeading"><span>My Messages:</span></div>
@foreach (Parichay.Domain.MemberPosts p in Model)
{
@Html.Partial("BO/post", p);
}
</div>
}
<br />
<br />
@Html.Partial("Post", new Parichay.Domain.MemberPosts() { Recipient = new Parichay.Domain.MemberDetails() { Id = ((Parichay.Domain.Models.CustomIdentity)User.Identity).UserKey } })
